約 6,240,595 件
https://w.atwiki.jp/sampleisbest/pages/47.html
開発環境 Microsoft Visual C++ 2010 Express (SP1) 実行環境 Microsoft Windows XP Home Edition (SP3) プロジェクトの種類 Win32 コンソール アプリケーション プロジェクト名 files2 アプリケーションの種類 コンソール アプリケーション 追加のオプション 空のプロジェクト 文字セット Unicode files2.c #include fcntl.h // _O_WTEXT #include io.h // _setmode #include stdio.h // _fileno #include stdlib.h #include tchar.h int files(const _TCHAR *ptcDir); int _tmain() { _TCHAR atcDir[_MAX_PATH]; size_t size; // BOMなしUTF-16LE _setmode(_fileno(stdout), _O_WTEXT); _setmode(_fileno(stderr), _O_WTEXT); _tgetcwd(atcDir, _countof(atcDir)); size = _tcslen(atcDir); if (0 size atcDir[size - 1] != _T( \\ )) { _tcscat_s(atcDir, _countof(atcDir), _T("\\")); } files(atcDir); return 0; } int files(const _TCHAR *ptcDir) { struct _wfinddata_t fi;// fileinfo _TCHAR atcPath[_MAX_PATH]; intptr_t handle; size_t sizeDir; sizeDir = _tcslen(ptcDir); if (_MAX_PATH = sizeDir + 4) { _ftprintf(stderr, _T("error パスが長過ぎます。%d[%s]\n"), sizeDir, ptcDir); return -1; } _stprintf_s(atcPath, _countof(atcPath), _T("%s*.*"), ptcDir); handle = _tfindfirst(atcPath, fi); if (handle == -1) { _ftprintf(stderr, _T("error _tfindfirst[%s]\n"), ptcDir); return -1; } do { if (fi.attrib _A_SUBDIR) { if (!_tcscmp(fi.name, _T(".")) || !_tcscmp(fi.name, _T(".."))) { continue; } if (_MAX_PATH = sizeDir + _tcslen(fi.name) + 1) { _ftprintf(stderr, _T("error パスが長過ぎます。[%s][%s]\n"), ptcDir, fi.name); continue; } _stprintf_s(atcPath, _countof(atcPath), _T("%s%s\\"), ptcDir, fi.name); files(atcPath); } else { _tprintf(_T("%10u %s%s\n"), fi.size, ptcDir, fi.name); } } while (_tfindnext(handle, fi) == 0); _findclose(handle); return 0; }
https://w.atwiki.jp/nihongodocuments/pages/17.html
HOME Admin and Setup General Information Application-Based Help Files Installing xTuple Client Help Files xTuple Clients feature a Help menu on the main menu bar. From this Help menu, users may access on-line documentation--that is, assuming the required help files have also been installed. The process for installing help files differs depending on the platform, Windows, Mac or Linux, of the client you are using. See below for instructions on how to install help files for the various platforms supported by xTuple. xTupleクライアントは、ヘルプ・メニューと、ヘルプ・メニュー・バーを備えています。 ヘルプ・メニューから、ユーザーはオンライン・ドキュメントにアクセスできます。それは、必要なヘルプファイルもインストールされていると仮定して、です。 ヘルプファイルのインストールは、あなたが使用するクライアントの、Windows, Mac, Linux といった、プラットフォームに依存し、異なったファイルになります。 以下の節では、xTupleがサポートする様々なプラットフォームへのヘルプファイルのインストール方法を説明します。 Before starting xTuple help is implemented different in different version. Before you begin you need to know which help system to use. If you are running 3.7 or later than you can use those instructions. Otherwise if you are using 3.6 and earlier you will use the later instructions. 3.7 and Later Instructions 3.6 and Earlier Instructions xTupleのヘルプは、バージョンにより異なった実装となっています。使用開始前に、どのヘルプが必要かを調べる必要があります。もし、xTuple Ver 3.7 以降をご利用なら、本節を、xTuple Ver 3.6 以前なら、後の節の説明をご覧ください。 3.7 and Later Client for Windows You must first locate the directory where you installed your xtuple.exe file. xtuple.exe is the main xTuple application file. Among the various other files in this directory, you should see two files called XTupleGUIClient.qch and XTupleGUIClient.qhc. These files are the default documentation place holders. You need to replace these two files with two new files having the same names. To get the new, replacement help content files, you should download the helpXTupleGUIClient.zip file from the xTuple website. This .zip file contains the two new help content files. Replace the old XTupleGUIClient.qhc and XTupleGUIClient.qch files with the new ones at the same level as the xtuple.exe file. This may require closing any open xTuple sessions before you can replace the files. まず最初に、あなたの xtuple.exe ファイルをインストールしたディレクトリを見つける必要があります。 xtuple.exe はxTupleアプリケーションのメインとなるファイルです。このディレクトリ内の様々な他のファイルの間で XTupleGUIClient.qch と TupleGUIClient.qhc という2つのファイルを見つけることができます。これらファイルは、デフォルトのドキュメントのプレースホルダです。同名の新しい版のファイに置き換える必要があります。ヘルプファイルを置き換えるために、xTupleのWebサイトから、 helpXTupleGUIClient.zip をダウンロードします。このzipファイルには、2つの新しいヘルプコンテンツが含まれています。xtuple.exe配下のXTupleGUIClient.qhc とXTupleGUIClient.qchを新しいファイルと置き換えてください。ファイルの置き換え前に、xTupleのセッションのクローズを要求される場合もあります。 Client for Mac The xTuple application for Mac is distributed as a package. To view the contents of the xTuple package, hold down the CTRL key on your keyboard and then click on the package file. From the pop-up menu, select the Show Package Contents option. Inside the Contents\Resources directory, you should see two files called XTupleGUIClient.qch and XTupleGUIClient.qhc. These files are the default documentation place holders. You need to replace these two files with two new files having the same names. To get the new, replacement help content files, you should download the helpXTupleGUIClient.zip file from the xTuple website. This .zip file contains the two new help content files. Replace the old XTupleGUIClient.qhc and XTupleGUIClient.qch files with the new ones in the Contents\ Resources directory. This may require closing any open xTuple sessions before you can replace the files. Client for Linux Follow the same process as for the Client for Windows. The only difference is the main xTuple application will not have the .exe extension. 3.6 and Earlier Client for Windows You must first locate the directory where you installed your xtuple.exe file. xtuple.exe is the main xTuple application file. Among the various other files in this directory, you should see a file called assistant.exe and a directory called helpXTupleGUIClient . The assistant.exe file is the program xTuple uses to display on-line help. The helpXTupleGUIClient directory contains the necessary help content files.If your installation does not include these files, then you should download a new copy of the xTuple client. The assistant.exe file is included with current releases of the software. To get the needed help content files, you should download the helpXTupleGUIClient.zip file from the xTuple website. This .zip file contains the help content files. Be sure When extracting the .zip file to choose the appropriate options to ensure you maintain the directory structure for the help files. If extracted correctly, a directory called helpXTupleGUIClient will be installed at the same level as the xtuple.exe file. This directory will contain the help content files. As long as the assistant.exe file and the help content files directory are installed as described above, you may access on-line documentation using the Help menu found within the xTuple client. Client for Mac The xTuple application for Mac is distributed as a package. To view the contents of the xTuple package, hold down the CTRL key on your keyboard and then click on the package file. From the pop-up menu, select the Show Package Contents option. An application file called assistant should be located in the Contents\Resources directory. The assistant file is the program xTuple uses to display on-line help.Once you have verified the assistant program is installed in the Contents\ Resources directory, you must then install the help content files into the same directory. To do so, download the helpXTupleGUIClient.zip file from the xTuple website. This .zip file contains the help content files. Be sure When extracting the .zip file to choose the appropriate options to ensure you maintain the directory structure for the help files. If extracted correctly, a directory called helpXTupleGUIClient will be installed in the Contents\ Resources directory. This directory will contain the help content files. As long as the assistant file and the help content files directory are installed as described above, you may access on-line documentation using the Help menu found within the xTuple client. Client for Linux Follow the same process as for the Client for Windows. The only difference is the main xTuple application and assistant files will not have the .exe extension.
https://w.atwiki.jp/cochet/pages/22.html
Commands /as - display AnyoneSleep status. Tells the player if the AnyoneSleep plugin is currently enabled or disabled /as toggle - toggle sleeping for the server (alias "/as t") Enables/disables sleeping for the server. This setting is global (for all players) and persistent (will be saved after successful server "stop") Permissions / Configuration file Permissions Permissions plugin usage is optional. If you are not using it the plugin will default to using the regular "ops.txt" (all commands will be enabled for all ops). If you are using permissions but you do not want it to apply to this plugin there is an option to make the plugin "static" via the configuration file (read below) The plugin utilizes the following permission nodes anyonesleep.toggle - allow player to toggle sleeping for the server Commands enabled /as toggle Special additional permission anyonesleep.cansleep - allow player to sleep even if sleeping is disabled for the server _____________________________________________________ Configuration file In case the configuration file doesn t exist it is created automatically with default values when the plugin is loaded. This means you probably don t need to worry about it at all! Configuration file uses the .yml format (no tabs and be careful with spaces!) and will be at "plugins/InstaBreak/config.yml". The default (with added comments) is as follows Code config dynamic #These dynamic configuration settings can be changed with in-game commands aswell (read more in the commands section above). enableforall true #When set to "true" any player can pass the nigth using a bed. When set to "false" only ops (or players with special permission node) can sleep! Changelog
https://w.atwiki.jp/sampleisbest/pages/628.html
beep.asm comment * ml /c /AT /Fl beep.asm link16 /t beep; * .modeltiny .code org100h start movdx, 3fdfh moval, 76h outdx, al movsi, 0 L1 movbl, seq[si] orbl, bl jzexit incsi subbl, 60 addbl, bl movbh, 0 movax, ftbl[bx] movdx, 3fdbh; 分周比 outdx, al moval, ah outdx, al moval, 6; beep on out37h, al movcx, 9; 音長 L2 @@ inal, 0a0h; VSYNC andal, 20h jnz@b @@ inal, 0a0h andal, 20h jz@b loopL2 jmpL1 exit moval, 7; beep off out37h, al movax, 4c00h int21h seqdb83,71,67, 83,71,67, 83,71,67, 83,71,67, 81,71,67, 79,71,67 db79,71,67, 78,71,67, 76,71,67, 76,71,67, 79,71,67, 83,71,67 db88,71,67, 88,71,67, 88,71,67, 88,71,67, 86,71,67, 84,71,67 db84,76,72, 83,76,72, 81,76,72, 81,76,72, 83,76,72, 84,76,72 db0 ; 分周比テーブル ; f=.44*2^((note-69)/12) ; n=2457.6/f (10MHz系) ftbldw9394,8866,8369,7899, 7456,7037,6642,6269, 5918,5585,5272,4976 dw4697,4433,4184,3950, 3728,3519,3321,3135, 2959,2793,2636,2488 dw2348,2217,2092,1975, 1864,1759,1661,1567, 1479,1396,1318,1244 endstart
https://w.atwiki.jp/naobe/pages/78.html
ネットワークに戻る RFC2616概要 HTTP/1.1 RFC6265概要 HTTP状態管理機構 パーセントエンコーディング(URLエンコード) URLで意味を持つコードと混同する日本語などのバイナリや特殊記号を16進形式にして、先頭に%を付加した文字に変換する。正確に言うと、非予約文字、予約文字以外を変換する。 項目 説明 非予約文字 ASCIIのコード範囲内の英字(大文字・小文字)、数字、ハイフン “-”、ピリオド “.”、アンダースコア “_”、チルダ “~” 予約文字 URIを表す符号。ASCIIのコード範囲内のコロン “ ”、スラッシュ “/”、疑問符 “?”、シャープ “#”、角括弧 “[”、“]”、単価記号 “@”、感嘆符 “!”、ドル記号・ペソ記号 “$”、アンパサンド “ ”、アポストロフィー・シングルクオート “ ”、丸括弧 “(”、“)”、アスタリスク “*”、正符号・加算記号 “+”、コンマ “,”、セミコロン “;”、等号 “=” name=%E8%8F%85%E7%9B%B4%E4%BA%BA UTF-8で、%E8%8F%85:菅, %E7%9B%B4 直, %E4%BA%BA 人 x-www-form-urlencoded(URLエンコード) POSTのフォームデータをエンコードする。%を付加する方式は、パーセントエンコーディングと同じ。パーセントエンコーディングの予約文字も変換している スペースは"+"に変換。Javaのソースを見ると、英数字、"-","_", ".","*"以外を変換する BASE64 Wikipediaより データを64種類の印字可能な英数字のみを用いて、それ以外の文字を扱うことの出来ない通信環境にてマルチバイト文字やバイナリデータを扱うためのエンコード方式 7ビットのデータしか扱うことの出来ない電子メールにて広く利用されている A–Z, a–z, 0–9 までの62文字と、記号2つ (+ , /) 、さらにパディング(余った部分を詰める)のための記号として = が用いられる 76文字ごとに改行コードが入る Cookie Wikipediaより クッキーを設定する際、どの要求に対してクッキー情報を送り返すのか、URLの範囲を指定する。 規定値は、クッキーを設定したサーバに対するすべての要求であり、対象を広げることも狭めることもできる。ただし広げる場合でも、トップレベルドメインより狭い範囲でなければならない。 またクッキーの有効期限は、通常はブラウザを終了するまでだが、指定した期限まではブラウザを再度起動しても保持されるように設定することができる。有効期限の情報も、サーバからブラウザにクッキー情報を送信する段階で付加される。 無期限という設定は出来ない。 詳細: http //www.studyinghttp.net/cookies リクエスト 全てテキスト。行(CRLF)で区切られる。 フォーマット リクエストラインは1行。ヘッダは複数行。 大項目 小項目 説明 リクエストライン メソッド GET,POST,PUTなどのどれか。 リクエストURL リクエストを処理するURI プロトコルバージョン HTTPのバージョン。【例】HTTP/1.1 ヘッダ HOST リクエスト先のホスト名。必須項目 空行 POSTのときにヘッダの終了を示すために挿入される メッセージボディ POSTのときにリクエストデータを出力する 【例】 GET http //example.jp/31/31-001.php HTTP/1.1 リクエストライン Host example.jp --+ User-Agent Mozilla/5.0 (Windows NT 5.1; rv 2.0.1) Gecko/20100101 Firefox/4.0.1 | Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 +-- ヘッダ Accept-Language ja,en-us;q=0.7,en;q=0.3 | Accept-Encoding gzip, deflate | Accept-Charset Shift_JIS,utf-8;q=0.7,*;q=0.7 | Keep-Alive 115 | Connection keep-alive | Referer http //example.jp/31/ --+ Accept-CharsetでShift-JISの品質係数が1であるため、サーバは、Shift-JISでエンコードしたメッセージを返す。 POST http //example.jp/31/31-003.php HTTP/1.1 リクエストライン Accept image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel ヘッダ Referer http //example.jp/31/31-002.php Accept-Language ja User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Inf oPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Content-Type application/x-www-form-urlencoded Accept-Encoding gzip, deflate Host example.jp Content-Length 65 Connection Keep-Alive Pragma no-cache name=%E8%8F%85%E7%9B%B4%E4%BA%BA mail=kan@aaa.jp gender=%E7%94%B7 メッセージボディ Hostヘッダ HTTP1.1では必須。POST/GETでのURIにHOSTを指定していなかった場合、Virtualホストを特定できない。そのためHostヘッダにHOST名を指定する。URIにホスト名があって、Hostヘッダにもホスト名がある場合はURIを優先する。URIにホスト名を指定することを強制すれば良いような気がするが。 Referer ヘッダの一種。リンク元のURLを示す。あるWebページのリンクをクリックして別のページに移動したときの、リンク元のページのこと。 改変、削除される場合があるので正しくリンクを示しているとは限らない。 セキュリティ上、問題となるのは、URLが秘密情報を含んでいる場合。たとえば、URLがセッションIDを含んでいる場合。なりすましに使われる可能性がある。 【例】 GET http //example.jp/31/31-002.php HTTP/1.1 Accept image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, appl ication/msword, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms -xpsdocument, application/xaml+xml, */* Referer http //example.jp/31/ Accept-Language ja User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Inf oPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Accept-Encoding gzip, deflate Host example.jp Connection Keep-Alive http //example.jp/31/のHTMLのaタグからリクエストが発生したため、Refererヘッダがつく。 レスポンス 全てテキスト。行で区切られる。 フォーマット ステータスラインは1行。ヘッダ、ボディは複数行。 大項目 小項目 説明 ステータスライン プロトコルバージョン ステータスコード 1XX 処理継続、2XX 正常終了、3XX リダイレクト、4XX クライアントエラー、5XX サーバエラー テキストフレーズ レスポンスヘッダ Content-Length ボディのバイト数 Content-Type MIMEタイプ; charset=エンコーディング 空行 ヘッダの終わりを示す ボディ 【例】 HTTP/1.1 200 OK Date Wed, 04 May 2011 04 51 51 GMT Server Apache/2.2.14 (Ubuntu) X-Powered-By PHP/5.3.2-1ubuntu4.2 Vary Accept-Encoding Content-Length 20 Keep-Alive timeout=15, max=100 Connection Keep-Alive Content-Type text/html; charset=UTF-8 body 13 51 /body Content-type メディアタイプを示すエンティティヘッダ(メッセージボディに対する付随情報)。type "/" subtype *( ";" parameter )であらわされる。text/html; charset=utf-8など。charsetを追加すると出力の文字コードを示す。HTML文書にapplication/octet-streamを付けると、 多くの場合、Webブラウザはそれをダウンロードするか否か問い合わせるようになる。 Apacheの場合は、httpd.confの以下の設定でcharsetを指定する。 AddDefaultCharset UTF-8 Tomcatでは、JSPのpageディレクティブで設定する。 %@ page language="java" contentType="text/html; charset=Windows-31J" pageEncoding="Windows-31J" % http //www.atmarkit.co.jp/fjava/rensai3/mojibake01/mojibake01.html 参照
https://w.atwiki.jp/0x0b/pages/89.html
ハイパーテキスト転送プロトコル RFC 2616 WebブラウザとWebサーバの間でHTMLなどのコンテンツの送受信に用いられる通信プロトコル リクエスト-レスポンス型 トランスポート・プロトコルとして通常TCPを使用 基本的な考え方は非常に単純であり「何を」「どうして」ほしいのかを相手に要求する。「何を」に当たるのがURL、「どうして」がメソッドにあたる。 World Wide WebにおけるWebページなどのリソースは、Uniform Resource Identifierによって指定される。 ポート番号80をデフォルトとして使用する(送信時は8080)。 TLSで暗号化され、セキュリティを確保したHTTPは、HTTPSと呼ばれる(httpsは実際にはURIスキームの1つであり、実際のプロトコルにはHTTP over SSL/TLSが用いられる)。 HTTP は基本的にサーバが状態を保持しない (stateless) プロトコルだが、データベースなどを使用するWebアプリケーションにおいては状態保持が必要だったため、そのためにいわゆる Cookie とよばれる機構が Netscape Communications Corporation によって導入された。Cookie を使用することによって状態を管理し、"セッション" を維持することが可能になる。 HTTPの拡張プロトコルとしてWebDAVがある。 UPnPでは、HTTPをUDP上で使用するHTTPUや、マルチキャストで使用するHTTPMUが規定された。 HTTP/0.9 URLのみの簡単なやりとり HTTP/1.0 NNTPやSMTPのような各種ヘッダが定義 HTTP_Cookieなどの利用 HTTP/1.1 複数データを転送するためのキープアライブ(keep-alive)機能やプロキシなどの利用も想定された仕様 バーチャルホストをサポートした。インターネット人気に伴い多くの企業がWebサイトを持ち始めたが、当時ではまだまだ企業が自前のWebサーバを運用するのは人員、効率の問題で難しかったためISPのサーバでホスティングをしていた。当時はまだ一社ごとに専用サーバを用意するほどのことでもないため一台のサーバで複数のWebサイトを運用していた。 しかしバーチャルホストには問題がある。例えばある1台のサーバに foo.example.com と bar.example.com という二つの仮想Webサーバがあるとする。ここではクライアントは http //foo.example.com/index.html にアクセスしたいとする。そのためにはまず foo.example.com をIPアドレスに解決するためDNSサーバに問い合わせ、そのサーバにアクセスし GET index.html を要求する。しかしサーバ側のIPアドレスは foo.example.com と bar.example.com 共におなじIPアドレスである。もし foo.example.com にも bar.example.com にも index.html というファイルが存在すればクライアントはどちらのサーバにアクセスしたのかわかるすべがない。 これを解決するにはそれぞれにIPアドレスを付与することで解決できるが、IPv4の資源を無駄にすることになる。 HTTP/1.1ではこれを解決するためにHostヘッダを追加した。 HTTP/1.0のヘッダ GET /index.html HTTP/1.0 HTTP/1.1のヘッダ GET /index.html HTTP/1.1 Host foo.example.com 動作 通信の開始 他のプロトコル同様クライアント側とサーバ側ではHTTPの役割が大きく異なる。HTTP通信を開始できるのはクライアント側のみである。 クライアント側はサーバにリクエストを送り、サーバはクライアントにレスポンスを返すのが最も典型的なHTTPのやりとりである。 接続 システム間でメッセージをやりとりするにはTCP接続を確立させる必要がある。 HTTP/0.9ではクライアントのリクエストごとにTCP接続を確立させる必要があったが、これは当時のWebサイトがシンプルなテキストベースであることが多かったためである。近年ではJavaScriptやアニメーション画像など、多数のオブジェクトが埋め込まれたWebサイトが一般的となってきているが、これら全てのオブジェクトを取得するたびにTCP接続を確立するのはサーバやネットワークに大きな負担を強いるため、HTTP/1.1では持続的接続がサポートされることとなった。ただしこの機能が利用できるのはサーバ側がその要求を許可した場合のみである。 パイプライン クライアントは前のリクエストに対するサーバの応答を待たずに別のリクエストを発行できる。 メソッド HTTPでは8つのメソッドが定義されている。ただし実際のHTTP通信ではGETとPOSTメソッドだけで殆どを占める。 HTTPメソッドの一覧 メソッド HTTP/0.9 HTTP/1.0 HTTP/1.1 GET ○ ○ ○ POST ○ ○ PUT △ ○ HEAD ○ ○ DELETE △ ○ OPTION ○ TRACE ○ CONNECT ○ GET 指定されたURIのリソースを取り出す。HTTPの最も基本的な動作で、HTTP/0.9では唯一のメソッド。 POST GETとは反対にクライアントがサーバにデータを送信するメソッドである。Webフォームや電子掲示板、Wikiなどに投稿する。GETの場合と同じくサーバはクライアントにデータを返すことができる。 PUT 指定したURIにリソースを保存する。URIが指し示すリソースが存在しない場合は、サーバはそのURIにリソースを作成する。画像のアップロードなどが代表的。 DELETE 指定したURIのリソースを削除する。 OPTION サーバを調査するメソッド。例えばサーバがサポートしているHTTPのバージョンなどを調査できる。 HEAD GETと似ているがサーバはHTTPヘッダのみ返す。クライアントはWebページを取得せずともそのWebページが存在するかどうかを知ることが出来る。例えばWebページのリンク先が生きているか検証するときなどにリンク先のデータを全て取得することなく調査することが出来る。 TRACE サーバまでのネットワーク経路をチェックできる。サーバは受け取ったメッセージのそれ自体をレスポンスのデータにコピーして応答する。WindowsのTracertやUNIXのTracerouteとよく似た動作。 CONNECT 暗号化したメッセージをプロキシで転送する際に用いる。 サーバの連携 バーチャルホスト リダイレクト 301 MovedというステータスコードとURIを受け取りクライアントはこの受け取ったURIに再度GETを送る。 クッキー(HTTP_Cookie) HTTPメッセージ クライアントからのHTTPリクエストは3つの要素から構成される。それぞれメソッド、URI、HTTPのバージョンでありスペースで区切られている。 下にもっとも単純な、クライアントとサーバ(www.google.co.jp 80)とのHTTPプロトコルのやり取りの例を挙げる。 クライアントのリクエスト GET / HTTP/1.0 GETがメソッド、URIは / 、バージョンはHTTP/1.0であることを示す。 URIは/でルートリソースを対象にしたリクエストであることを示している。TRACEなど特定のサーバを対象としないリクエストの場合には*が表示される。 サーバのレスポンス HTTP/1.0 200 OK Cache-Control private Content-Type text/html Set-Cookie PREF=ID=72c1ca72230dea65 LD=ja TM=1113132863 LM=111 3132863 S=nNO7MIp W2o7Cqeu_; expires=Sun, 17-Jan-2038 19 14 07 GMT; path=/; domain=.google.co.jp Server GWS/2.1 Date Sun, 10 Apr 2005 11 34 23 GMT Connection Close html head meta http-equiv="content-type" content="text/html; charset=Shift_JI S" title Google /title style !-- ・・・以下省略 上のリクエストのGETにあたる部分をメソッドといい、 HTTP/1.0では、GET, HEAD, PUT, POST, DELETE, LINK, UNLINK、 HTTP/1.1ではさらに、OPTIONS, TRACEがある。 GETメソッドのレスポンスにはヘッダ情報のあとに改行が挟まれ、コンテンツ本体が送られる。 HEADメソッドのレスポンスにはコンテンツサイズや更新日時などの情報を含むヘッダのみが送られる。 また、リクエストの2行目以降はヘッダを送る。 HTTPヘッダフィールド ヘッダの各要素は フィールド名 内容 のペアで構成される。 ブラウザの情報を表すUser-Agent、使用候補言語を表すAccept-Language、他ページへのリンクを辿った場合にそのリンク元ページのURLを表すRefererなどが代表的なフィールドである。 なお、リクエスト時のHostヘッダはHTTP/1.1では必須であるが、HTTP/1.0では無くても良い。 但し、サーバがバーチャルホストを利用している場合は、Hostヘッダが無いとリソース取得に失敗するので、たとえHTTP/1.0を使用していてもHostヘッダを付加しなければならない。 HTTPヘッダフィールドの一覧 リクエストヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Acceptクライアントの受け入れ可能コンテンツタイプを示す○○ Accept-Charsetクライアントの受け入れ可能文字セットを示す○○ Accept-Encodingクライアントの受け入れ可能文字エンコーディングを示す○○ Accept-Languageクライアントの受け入れ可能言語を示す○○ Authorizationクライアントの認証情報を示す○○ Cookieクライアントの状態管理情報をサーバに返す Cookie2HTTP/1.1のSet-Cookie2ヘッダの受け入れ可能をサーバに知らせる Expectクライアントがサーバに期待する動作を示す○ Fromリクエスト発行者個人の情報を示す。一般的に電子メールアドレスを使用する○○ Host要求しているオブジェクトがあるホストを示す○ If-Matchif文を用い条件が真の場合のみリクエストを処理するようサーバに要求する○ If-Modified-Since指定日及び指定時刻以降にオブジェクトが変更されている場合のみリクエストを処理するよう要求する○○ If-None-MatchIf-Matchの逆で条件が真でない場合のみリクエストを処理する要求○ If-Range条件が真の場合のみ指定したオブジェクトの範囲を返すようサーバに要求する○ If-Unmodified-SinceIf-Modified-Sinceの逆で真でないときのみ実行する○ Max-Forwardsリクエストの中間システム経由数を最大いくつまでかを指定する○ Proxy-Authorizationクライアントがプロキシサーバに対して自身の認証を行う○ Rangeオブジェクト全体でなくリソースの一部を要求する○ Refererリクエストの出所を示す。一般的にはユーザの辿ったWebページのURLが用いられる。○○ TEレスポンスの受け入れ可能転送エンコーディングを示す○ レスポンスヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Accept-Rangesオブジェクトの一部に対するリクエストをサーバが受け入れ可能か示す○ Ageオブジェクトの経過時間を秒単位で返す○ AllowオブジェクトがサポートするHTTPメソッドを示す○○ ETagオブジェクトのエンティティタグ値を示す○ Locationオブジェクトの場所を示す○○ Proxy-Authenticateプロキシサーバがクライアントに認証を要求するときに用いる○ Retry-Afterリクエストの再試行をいつ行うかをクライアントに通知する○○ Serverサーバのベンダー名、バージョン番号を占めす○○ Set-Cookie2サーバがクライアントにCookieを送信するときに用いる Varyサーバのレスポンス内容を決定する際にリクエストURI以外に使用したHTTPヘッダのリストを示す○ WWW-Authenticateクライアントに対してリクエストの再発行を要求する。認証情報も含まれる○○ 一般ヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Cache-Controlメッセージの経由する中間キャッシュの動作を指示する○ Connection中間システムが転送すべきでないヘッダのリストを示す○○ Dateメッセージの作成日時を示す○○ Pragmaメッセージに関する追加情報を示す○○ Trailerメッセージボディの後に追加のヘッダーが表れることを示す○ Transfer-Encodingクライアントの転送を目的としたオブジェクトのエンコーディングを示す○ Upgrade通信相手に別のプロトコルにアップデートするよう要求する○ User-AgentクライアントのWebブラウザなどの情報を示す○○ Warningメッセージに関する追加情報を示す。通常はキャッシュの問題を警告するときに使われる○ エンティティヘッダ ヘッダ概要HTTP/0.9HTTP/1.0HTTP/1.1 Content-Encodingオブジェクトのエンコーディングを示す○○ Content-Languageオブジェクトの言語(人間の言語)を示す○○ Content-Lengthオブジェクトのサイズをバイト単位で示す○○ Content-Locationオブジェクトの場所を示す○ Content-MD5オブジェクトのメッセージダイジェストを運ぶ○ Content-Rangeメッセージボディで運ばれるオブジェクトの範囲を示す○ Content-Typeオブジェクトのタイプを示す○○ Expiresオブジェクトの有効期限の日時を示す○○ Last-Modifiedオブジェクトが最後に変更された日時を示す○○ Accept サーバのレスポンスに含まれるメッセージボディで受け入れることが出来るコンテンツタイプと各コンテンツタイプの相対的な優先度を指定するリクエストヘッダ。指定できるコンテンツタイプはIANAによって定義されている。 Accept text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c 上記のようにAcceptヘッダには行をわけて複数のコンテンツタイプを指定できる。上記の例はいずれの4のコンテンツタイプのいずれも受け入れ可能であることを示す。0.5や0.8といった数字は品質係数で0~1の範囲の数値である。数値の指定がなければ1.0となる。 text/plain; q=0.5 text/html text/x-dvi; q=0.8 text/x-c Accept-Charset レスポンスで返されるメッセージボディの文字コードを指定するリクエストヘッダ。Acceptと同じく複数指定でき品質係数も設定できる。定義済み文字セットはIANAが管理している。 Accept-Charset unicode, *; q=0.8 この例だとクライアントはUnicode文字セットを優先的に希望しているが他の文字セットとの相対優先度0.8で受け入れている。ただしサーバからのレスポンスのHTTPヘッダそのものの文字コードは常にISO-8859-1である。 Accept-Encoding Accept-Language レスポンスの言語(人間の言語)に対する優先度を指定する。言語コードはISO-639の2文字の省略コードを用いる。書き方は他のAccept-群と変わらず。 Accept-Language en-gb, en; q=0.8 上記の例はまずイギリス英語を要求し、利用できない場合はその他の英語を要求する。 Accept-Ranges Acceptで始まる他のヘッダフィールドと違いレスポンスヘッダーである。現在の仕様では2つの指定方法しかない。 Age リソースの推定経過時間を表示するレスポンスヘッダ。キャッシュサーバーはAgeヘッダの値からキャッシュしたリソースが有効かどうかを判定する。 Allow Authentication-info ユーザ認証のやりとりの最後で用いられる、成功したレスポンスのサーバが含めることの出来るレスポンスヘッダー。 Authorization サーバに対するクライアント自身の認証を行うことが出来る。 Cache-Control キャッシングの動作を指定するためのマスターヘッダ。 Connection Content-Encoding Content-Language リソースを英語などの自然言語で示すのに使われる。言語の指定はAccept-Languageヘッダと同じ。 Content-Length Content-Location Content-MD5 メッセージボディが変更されず宛先に届くことを保証する。MD5アルゴリズムを実行する。ただし悪意の改ざんに対しては当然MD5も改ざんされるのであまり機能はしない。どちらかといえば偶発的な変更の保証をしている。 Content-Range ダウンロードの再開に用いられる。 Content-Type メッセージボディに含まれるオブジェクトタイプを示す。次の例はリソースがテキストファイル、文字セットはISO-8859-4を使用していることを示している。 Content-Type text/plain; Charset=ISO-8859-4 Cookie クライアントがHTTP状態管理を望む場合にサーバから受け取ったクッキーを以後のリクエストに次の例のようなヘッダーを付加する。 Cookie $Version="1"; NAME="VALUE"; $Path="/shopping"; $domain="www.shop.com"+ $Port="80" $VersionはHTTPのバージョン、NAMEはクッキーの名前である。$から始まるクッキー名は使用が禁止されている。 Cookie2 基本的にCookieヘッダーとCookie2ヘッダーは別物である。 Date サーバがメッセージを生成した日時を示す。リソースの時間を示すLast-Modifiedヘッダーとは区別する必要がある。 HTTP/1.1では次のような形式を用いるようRFC1123で定義されている。 Date Sun, 06, Nov 1994 08 49 37 GMT HTTP仕様ではレスポンスにDateヘッダーを含めることを求めている。ただしレスポンスのステータスがサーバエラーの場合にはDateヘッダーは返らない。 ETag 主にキャッシングのパフォーマンスを向上する目的で使われる。 Expect サーバに対して特定の動作の期待を知らせる。用途としてはクライアントがサーバに対して100 Continueステータスを返すことを期待する場合に使われる。 Expect 100-continue サーバが期待に応じれない場合は417 Expectation Failedを返す。クライアントがいくつかのプロキシ経由で通信している場合、各プロキシサーバはExpectヘッダの一切の修正を許されない。 Expires オブジェクトの有効期限を示す。このヘッダで指定された日時までキャッシュはレスポンスのコピーを保持し、リクエストに対するレスポンスとして返すことが出来る。サーバがオブジェクトのキャッシュを望まない場合にはExpiresヘッダに過去の日時を設定することが多い。また、HTTP仕様では1年以上先の日時は設定できない。 Expires Thu, 28 Aug 2010 16 00 00 GMT Cache-Controlヘッダのmax-ageディレクティブはExpiresヘッダより優先されるため注意が必要である。 From リクエストを発行したユーザを特定することが出来る。1990年代では電子メールアドレスを設定することが多かったが、迷惑メールの問題もあり現在では殆ど使われていない。 From hoge@hogehoge.com Host 主にレンタルサーバのサポートを目的としてHTTP/1.1で導入された。現在ではHostヘッダを利用できない場合レンタルサーバのウェブサイトとまともな通信が出来ないと言ってよい(詳細はHTTP#歴史を参照)。 If-Match クライアントのリクエストを条件付きのリクエストにするために使われる。サーバは一定の条件が真であった場合のみリクエストを受け入れることが出来る。例えばウィキペディアを編集する際、記事のソースを取得し、書き換える際の間に別のユーザが既に編集していないかを判断するときなどに用いられる。 「if文」も参照 利用者:HogeがHTTPの記事を取得。ETagは1234 利用者:HageがHTTPの記事を取得。ETagは1234 利用者:HogeがHTTPのETagを再度取得。先ほど取得したETag 1234と現在のETag 1234が一致。 利用者:HogeがHTTPの記事を編集。ETagは1256になる。 利用者:HageがHTTPのETagを再度取得。先ほど取得したETagと現在のETagはマッチせず。 サーバは利用者:Hageの書き込みを拒否。 If-Modified-Since このヘッダーで指定された日時以降にオブジェクトが変更されている場合のみリクエストに応答するようサーバに要求する。リソースの削減に効果がある。 If-None-Match If-Matchと逆で条件が真でない場合のみリクエストを処理するよう要求する。 If-Range クライアントがキャッシュにオブジェクトの一部分を持っている場合にパフォーマンスを向上できる。 If-Unmodified-Since If-Modified-Sinceの逆の働きをする Last-Modified サーバオブジェクトの最終更新日時を示す。クライアントはこのヘッダを利用しIf-Modified-Sinceヘッダ等と組み合わせることによって効果を発揮する。 Location サーバがクライアントにリダイレクト先URLを知らせる際に用いられる。一般的にステータスコードが3xx代のレスポンスと共に使われるが201 Createdのレスポンスでも使うことが出来る。Content-Locationヘッダと名前が似ているが全く関係のない別のヘッダであるため注意。 Max-Forwards プロキシサーバ等を経由する際の最大ホップ数を指定する。二重ループなどでサーバから応答が得られない場合の問題解決の際、OPTIONメソッドやTRACEメソッドと共に用いられる。 HTTPステータスコード ステータスコードはクライアントのリクエストが成功したかどうかを示した上で追加情報を提供するいずれも3桁の数字から成る。具体的には100-199が情報提供、200-299が成功を示す。300-399はリダイレクト、400-499はエラーを示す。 セキュリティ技術 Basic認証 HTTP/1.1でBasic認証が定義されており最も単純なセキュリティ技術である。しかし仕様書を読むと定義を書いた著者自身が認証技術に疎いことがよくわかる。『HTTPプロトコル セキュア&スケーラブルなWeb開発』の著者は「基本認証を用いるくらいならなにも使わない方がまし」と著書に書いている。通常サーバは401ステータスコードで応答する。 行末文字はWindowsと同じCRLF。 RFC 2818 - HTTP Over TLS RFC 2817 - Upgrading to TLS Within HTTP/1.1 RFC 2616 - HTTP/1.1 ハイパーテキスト転送プロトコル -- HTTP/1.1 RFC 2068 - HTTP/1.1(初版,RFC 2616 によって obsolete) TS X 0085 2004 - ハイパテキスト転送プロトコル HTTP/1.1 標準仕様書(TS) RFC 1945 - HTTP/1.0 HttpTea Freeware HTTP Logger Studying HTTP
https://w.atwiki.jp/registry/pages/252.html
Recent Files Cleaner オフィシャルサイト http //ost.raindrop.jp/ ダウンロード OS(Windows) 98/ME/NT/2000/XP 言語 日本語 日本語化パッチ 記事 http //www.forest.impress.co.jp/lib/inet/security/antiadspy/recentfiles.html 備考 評価 選択肢 投票数 投票 非常に良い 3 良い 0 どちらでもない 0 悪い 0 非常に悪い 0
https://w.atwiki.jp/whoone/pages/4.html
リンク HTMLクイックリファレンス http //www.htmq.com/index.htm HTML5ゲームフレームワーク http //blog.verygoodtown.com/2011/02/limejs-html5-game-framework/ HTML5でゲーム作成 http //cnut1024.wiki.fc2.com/ SEO対策 http //seo.acnf.org/ http //www.d3.dion.ne.jp/~jkondou/hp/css_seo.html G123、事前受付登録中の「クイーンズブレイドリミットブレイク」にてAmazonギフト券が当たるフォロー&RTキャンペーン開催 - ASCII.jp HTML5 プロフェッショナル 認定試験 レベル1 想定問題 一覧 (1) - マイナビニュース [実力試し] HTML5 プロフェッショナル 認定試験 レベル2 想定問題 一覧 (1) - マイナビニュース HTML5ベースのMMORPG「MAD WORLD」のαテストが実施中。PCブラウザですぐに参加可能 - 4Gamer.net W3C/HTML5からWHATWG/Living Standardへ、Web発展史をひもとく - ITpro 「Macでリモートアクセス」に対応、Windows 365やシン・テレワークシステムHTML5版の魅力 | ボクシルマガジン - Beyond(ビヨンド) 「シン・テレワークシステム」にHTML5版 ~MacやChromebookからもWindowsをリモート操作可能に - 窓の杜 拡張機能が動かなくなるかも? 「Google ドキュメント」がHTML5 Canvasベースのレンダリングへ移行 - 窓の杜 新作HTML5ゲーム「邪神ちゃんドロップキックねばねばウォーズ」が配信開始。レアリティS“水着ぴの”がもらえる初心者ミッションを開催中 - 4Gamer.net AWS Elemental MediaLive が HTML5 モーショングラフィックスオーバーレイのサポートを開始 - amazon.com HTML5ベースのモダンブラウザーからリモート操作が可能に、「TeamViewer」にWebクライアント - 窓の杜 GMOメディア:HTML5ゲームプラットフォーム「ゲソてん byGMO」、「楽天ポイントモール」の利用者に向け38タイトルを提供開始 - PR TIMES 第4回専門学校 HTML5作品アワード、受賞作品の発表 - valuepress HTML5に完全対応 アドビ社製Webセミナーシステムの最新バージョン『AdobeConnect11』を提供開始 - アットプレス(プレスリリース) GMOメディア:HTML5ゲームプラットフォーム「ゲソてん」、ゲームコンテンツ提供先の20媒体において「PayPay」決済に対応 - PR TIMES HTML5ベースの韓国産2D MMORPG「MAD WORLD」の最新画像とムービーが公開 - 4Gamer.net Flashを使用している企業に朗報!Flashを簡単にHTML5で再生可能にするサービス『JswfPlayer』Ver2がリリース! - PR TIMES SL ジャパン、HTML5 に対応した監視制御システム (DCS/SCADA) 向け SL-GMS Web/Developer 新製品をリリース - valuepress HTML5ゲーム「八男って、それはないでしょう!アンサンブルライフ」の正式サービスが本日開始。テレビアニメ版がベースの放置型MMORPG - 4Gamer.net TVアニメの新作HTML5ゲーム『八男って、それはないでしょう!-アンサンブルライフ』本日より正式リリース!記念イベント絶賛開催中! - PR TIMES アスキーゲーム ガンダムRPG『SDガンダムオペレーションズ』がHTML5軽量化アップデートを実施! - ASCII.jp 神社経営シミュレーション「かみてる」がHTML5ゲームプラットフォームOhSECHIで配信開始 - 4Gamer.net 人気TVアニメの新作HTML5ゲーム『八男って、それはないでしょう!-アンサンブルライフ-』事前登録受付開始! - PR TIMES 文系でもできる!HTML5とCSS3の超らくらく入門講座 2020年版 - PR TIMES YouTubeがFlashを排除し、HTML5の最後の障害を取り除いた - 週刊アスキー - 週アスPLUS バンナム、HTML5ゲームの「enza」運営元を完全子会社化 ドリコム保有株買い取り - ITmedia G123で新作HTML5ゲーム『セルリアンホライズン』正式リリース!事前登録報酬は28日にプレゼント! - PR TIMES GMOメディア:HTML5ゲームプラットフォーム「ゲソてん」、ポイントサイト「モッピー」に『ゲゲゲの鬼太郎 妖怪横丁』など20タイトルを提供開始 - PR TIMES シンプルで安価なマルチデバイス対応HTML5デジタルカタログ制作サービスを提供開始 - PR TIMES スマホゲーム開発者向け書籍「HTML5 ゲーム開発の教科書」が9月中旬に発売 - 4Gamer Adobe FlashをHTML 5で代替するPixi.jsがWebGLを新たにサポート、クロスプラットフォームとインタラクティブアプリに対応 - InfoQ Japan HTML5版「刀剣乱舞」をサポートした「とうらぶキャプ」v2.0.0が公開 - 窓の杜 HTML5ゲームポータル「楽天ゲームズ」終了 2年で幕 - ITmedia NEWS HTML5ゲーム『ガールズ&クリーチャーズ』ホワイトデーイベント開催!期間限定キャラクターを解禁! - PR TIMES HTML5ゲームプラットフォームをてがけるLiberappは「HTML5 スマホゲーム業界カオスマップ(2019β)」を公開しました - PR TIMES Liberappが「HTML5 スマホゲーム業界カオスマップ(2019β)」を公開 - 4Gamer.net スマートニュース、優れたHTML5技術を持つ『Tombo, Inc.』を買収 - PR TIMES HTML5 GameCreatorというコミュニティー&ミートアップをはじめます - PR TIMES あなたはどっちサイドを選ぶ?G123新作HTML5ゲーム『ガールズ&クリーチャーズ』正式リリース! - PR TIMES 「Webは次のギアにシフトしている」〜HTML5 Conference 2018 基調講演レポート:レポート - Gihyo Jp HTML5ベースで描画速度が向上、BIダッシュボードの最新版 - @IT MONOist 時空を超えて、世界を救え!新作HTML5ゲーム『ナイトメアクロノス』事前登録受付開始! - PR TIMES 国内最大級のHTML5ゲームサービス「G123.jp」が本日10月4日(木)オープン! - PR TIMES 国内最大級のHTML5ゲームサービス「G123.jp」オープン!新たなゲームプラットフォーム誕生・10月は新作ゲーム3本登場 - アットプレス 技術の進化に左右されないWebサイトの作り方がわかる、プロを目指す人のための入門書『HTML5+CSS3の新しい教科書 改訂新版 基礎から覚える、深く理解できる。』発売 - PR TIMES 「艦これ」Flash→HTML5に 大規模メンテスタート - ITmedia 「艦隊これくしょん -艦これ-」がHTML5ベースに移行。8月15日11:55から3日がかりの大規模なメンテナンスを実施 - 4Gamer.net LINE上でHTML5ゲームが遊べる「LINE QUICK GAME」 たまごっち、ナンプレも - ITmedia HTML5ゲームにもeスポーツの熱狂を。 Liberappに観戦APIとデモゲームを追加 - PR TIMES BXD、HTML5プラットフォーム名称を「enza」に--新作ゲーム3タイトルを体験 - CNET Japan バンナム、HTML5活用の新作ゲーム「アイドルマスター シャイニーカラーズ」発表 - CNET Japan HTML5アプリプラットフォームのスタートアップ企業「Liberapp」設立と増資および仮想通貨「リベリウム」でICO検討開始のお知らせ - PR TIMES 株式会社レコム、HTML5ゲーム【iKON COLLECTION HIDDEN CATCH】のセールイベントを開催! - PR TIMES 株式会社レコム、レコム、HTML5ゲーム市場に挑戦! - PR TIMES HTML5を巡るGoogle、Apple、Microsoftの戦略の歴史 - ITmedia 【黒川塾51】HTML5ゲームとクラウドゲームでゲームコンテンツはどうなる? - Game Deets 「BXD」が狙うHTML5活用ブラウザゲームの需要--ファミスタ、アイマス新作を投入 - CNET Japan コレ1枚で分かる「HTML5(2) マルチデバイス時代のアプリケーションプラットフォーム」 - ITmedia HTML5の機能をどこまで活かせるか--新日鉄住金ソリューションズの「hifive」で実現できること - ログミー 「Google Chrome 56」が正式版に。HTML5デフォルト化がすべてのユーザーを対象に開始 - 窓の杜 「Google Chrome」のHTML5デフォルト化が開始。脱Flashの流れが加速 - 窓の杜 Chromeブラウザの“Flash→HTML5デフォルト化”完了は2017年10月 Googleがロードマップ発表 - ITmedia あきらめていたFLASHありませんか?HTML5変換サービスのご案内 - PR TIMES HTML5はこれからのWindowsか?、普遍的なアプリケーションの普遍的な開発/利用ベースとして - TechCrunch Japan Google Chrome、Flashに代わってHTML5をデフォルトに - ITmedia モバイルファーストを牽引する HTML5によるハイブリッドアプリ - ZDNet Japan 5分でわかるActiveReports帳票-HTML5ビューワ (1/4):CodeZine(コードジン) - CodeZine HTML5ベースのデスクトップクライアント:TechTargetジャパン用語事典 - TechTargetジャパン 仮想化 - TechTargetジャパン HTML5でクロスプラットフォームなデスクトップアプリを開発できる「Electron」とは - CodeZine FirefoxブラウザとWebの技術ですぐ作れる! HTML5で手軽にFirefox OSアプリ開発 - CodeZine YouTube、デフォルト動画プレーヤーを「Flash」からHTML5ベースに変更 - CNET Japan YouTube、メイン再生プレーヤーをFlashからHTML5にようやく移行 - ITmedia YouTube、従来のFlashに代わってHTML5をデフォルトに - AV Watch ついに正式勧告--「HTML5」を使いこなすには何が必要か - builder by ZDNet Japan - ZDNet Japan HTML5がW3C勧告に、15年ぶりの大改訂 - ASCII.jp 「HTML5でスマホとクルマを簡単につなぐ」――韓国Obigo社のハンCEOインタビュー - business network.jp HTML5 CanvasをjQueryライクに操作できるプラグイン「jCanvas」 - CodeZine 広告のHTML5化加速か、Googleがインタラクティブ広告制作ツール「Google Web Designer」を無料提供 【増田 @maskin】 - TechWave(テックウェーブ) #WAVE サンプルで学ぶHTML5の仕様変更要素・後編 (1/3) - ASCII.jp HTML5は5.0へ、2016年にはHTML 5.1も登場か - ASCII.jp Flashを使わない3D絵本の作り方、HTML5/CSS3時代のコンテンツ作りについての雑感 【増田 @maskin】 - TechWave(テックウェーブ) #WAVE HTML5で作るスマホWebアプリ開発チュートリアル(3) HTML5ならではのグラフィックスを実現する「canvas」 - マイナビニュース Cloud SQLとHTML5のWeb Storageで高速仕訳入力 - CodeZine HTML5によるアニメーション作成を容易にする「Adobe Edge」 - builder by ZDNet Japan - builder HTML5のタグに対応したHTMLエディター「Crescent Eve」v0.86が公開 - 窓の杜 50代でも分かったHTML5の基礎知識 - ASCII.jp 3分でわかるHTML5のコンテンツモデルとカテゴリー (1/3) - ASCII.jp Google、Chrome立ち上げ3周年でHTML5のインフォグラフィックを公開 - ITmedia XHTML1.0とHTML5の違いをスタバのページで紹介 (1/6) - ASCII.jp Google、FlashをHTML5に変換するツール「Swiffy」を公開 iOSにも対応 - ITmedia 第512回:HTML5 とは - ケータイ Watch HTML5で注目!インラインSVGの使い方 (1/5) - ASCII.jp W3C、HTML5ロゴを発表 - ITmedia W3C、HTML5ロゴを発表--HTML5推進を目指す - CNET Japan iOS向けゲームが15分で開発できる、高速HTML5ゲームエンジン「IMPACT」登場 【増田(@maskin)真樹】 - TechWave(テックウェーブ) #WAVE HTML5が注目を浴びる理由とは? ここが違う!サンプルで見るHTML5(1) - CodeZine AppleがiPad/iPhoneでも見られるHTML5ショーケースを公開 (追記あり)【@maskin】 - TechWave(テックウェーブ) #WAVE HTML5は安全か? 開発者が留意すべきセキュリティ問題 - ITmedia Google、HTML5へのシフトで「Gears」終了へ - ITmedia YouTube、HTML5動画プレーヤーをテスト公開 - ITmedia
https://w.atwiki.jp/stones/pages/477.html
■"THE STONES" (The bootleg LP) The label is Singer s Original Double Disc The order number is SODD 089 (WRMB 375) The matrix number is WRMB 375-A/B The labels on side 1 read "cat n dog records side 1" The labels on side 2 read "dog n cat records side 2" note VGP now uses this (DAC--Dog and Cat Records) Original release is limited edition on multi-colored vinyl (blue with black spots) Version shown is a later release on black vinyl with blank labels, but usually has a yellow insert not blue The date of the concert is 9-16-70 The venue is Deutschlandhalle, Berlin, West Germany One track is studio from May-June 1968 Olympic Sound Studios, London, England ("Memo from Turner IV") Title is also known as "The Story So Far" (refer to top of insert) Similar bootleg LP. Incomplete show, missing "You Gotta Move" and "Street Fighting Man" Sound quality Very good - Total time 44 minutes SIDE - A 1. Jumpin Jack Flash 2. Roll Over Beethoven 3. Sympathy for the Devil 4. Stray Cat Blues 5. Prodigal Son SIDE - B 1. Live with Me 2. Let it Rock 3. Little Queenie 4. Honky Tonk Women 5. Street Fighting Man 6. Memo from Turner IV
https://w.atwiki.jp/skmt200x/pages/108.html
ヘッダ Section 1 Global EnvironmentServer HTTP応答ヘッダの設定 サーバ設定ファイルのルートディレクトリの指定 PIDファイルのパス タイムアウト時間 キープアライブ 最大キープアライブリクエスト数 キープアライブタイムアウト時間 (調査・編集中)先行してforkを行うWEBサーバの設定 (調査・編集中) 待ち受けポート番号 モジュール読み込み 外部設定ファイルの読み込み 拡張ステータス情報保存の有無 実行ユーザ・グループ Section 2 'Main' server configurationサーバ管理者メールアドレス サーバ名 (サーバが自分自身の名前とポートを決定する方法の設定 ドキュメントルートの定義 (調査・編集中) ドキュメントルート配下に適用される設定 ユーザディレクトリモジュールの設定 ユーザディレクトリ配下に適用される設定 ディレクトリインデックスの設定 分散設定ファイルの設定 (調査・編集中) MIMEタイプ設定ファイル デフォルトのMIMEタイプの設定 MIME MAGICモジュールの設定 DNSルックアップの設定 メモリマッピングの有無 sendfileサポートの有無 エラーログの設定 ログレベルの設定 ログフォーマットの設定 (調査・編集中) カスタムログの設定 カスタムログファイルの設定 カスタムログファイルの設定 サーバ生成ドキュメントのフッタの設定 アイコン画像ディレクトリの設定 アイコン画像ディレクトリに適用される設定 Web DAVモジュールの設定 (調査・編集中) CGIディレクトリの設定 ディレクトリインデックスの設定 (調査・編集中) アイコン画像の設定(設定ごとの関連付け) アイコン画像の設定(拡張子ごとの関連付け) デフォルトのアイコン画像の設定 (調査・編集中) (調査・編集中) インデックス対象外の設定 言語の設定 言語優先順位の設定 (調査・編集中) デフォルトの文字セットの設定 (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) (調査・編集中) エラードキュメントの設定 (調査・編集中) サーバステータス表示設定 サーバ情報表示設定 プロキシモジュールの設定 プロキシ経由アクセス時のViaヘッダの有効・無効の設定 コンテンツキャッシュストレージ管理モジュールの設定 Section 3 Virtual Hosts TOPへ編集 ヘッダ # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL http //httpd.apache.org/docs/2.2/ for detailed information. # In particular, see # URL http //httpd.apache.org/docs/2.2/mod/directives.html # for a discussion of each configuration directive. # # # Do NOT simply read the instructions in here without understanding # what they do. They re here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections # 1. Directives that control the operation of the Apache server process as a # whole (the global environment ). # 2. Directives that define the parameters of the main or default server, # which responds to requests that aren t handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names If the filenames you specify for many # of the server s control files begin with "/" (or "drive /" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/etc/httpd" will be interpreted by the # server as "/etc/httpd/logs/foo.log". # TOPへ編集 Section 1 Global Environment ### Section 1 Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # Server HTTP応答ヘッダの設定 # # Don t give away too much information about all the subcomponents # we are running. Comment out this line if you don t mind remote sites # finding out what major optional modules you are running ServerTokens OS HTTP応答ヘッダの出力が「Server Apache/2.0.41 (Unix)」のように、OSの情報を含む形式で出力される。 参考 http //www.apache.jp/manual/mod/core.html#servertokens サーバ設定ファイルのルートディレクトリの指定 # # ServerRoot The top of the directory tree under which the server s # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL http //httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile ); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/etc/httpd" 通常RHEL系OSの設定では、/etc/httpdを指定する。 設定ファイル中の相対パスは、このベースディレクトリからの相対パスになる。 PIDファイルのパス # # PidFile The file in which the server should record its process # identification number when it starts. # PidFile run/httpd.pid タイムアウト時間 # # Timeout The number of seconds before receives and sends time out. # Timeout 120 それぞれの処理(イベント)について、リクエストを失敗させるまでにサーバが待つ時間。 GETリクエストを受け取るのにかかる総時間 POSTやPUTリクエストにて、TCPパケットが届くまでの待ち時間 レスポンスを返す際、TCPのACKが帰ってくるまでの時間 参考 http //www.apache.jp/manual/mod/core.html#timeout参考 http //www.apache.jp/manual/mod/core.html#timeout キープアライブ # # KeepAlive Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off 1回のページのリクエストで、沢山のHTTPリクエストを発行する必要がある場合、キープアライブはOnに設定した方がパフォーマンスは向上する。 参考 http //www.apache.jp/manual/mod/core.html#keepalive 最大キープアライブリクエスト数 # # MaxKeepAliveRequests The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 参考 http //www.apache.jp/manual/mod/core.html#maxkeepaliverequests キープアライブタイムアウト時間 # # KeepAliveTimeout Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 (調査・編集中) ## ## Server-Pool Size Regulation (MPM specific) ## 先行してforkを行うWEBサーバの設定 # prefork MPM # StartServers number of server processes to start # MinSpareServers minimum number of server processes which are kept spare # MaxSpareServers maximum number of server processes which are kept spare # ServerLimit maximum value for MaxClients for the lifetime of the server # MaxClients maximum number of server processes allowed to start # MaxRequestsPerChild maximum number of requests a server process serves IfModule prefork.c StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 /IfModule 参考 http //httpd.apache.org/docs/2.2/ja/mod/prefork.html (調査・編集中) # worker MPM # StartServers initial number of server processes to start # MaxClients maximum number of simultaneous client connections # MinSpareThreads minimum number of worker threads which are kept spare # MaxSpareThreads maximum number of worker threads which are kept spare # ThreadsPerChild constant number of worker threads in each server process # MaxRequestsPerChild maximum number of requests a server process serves IfModule worker.c StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule 参考 http //httpd.apache.org/docs/2.2/ja/mod/worker.html 待ち受けポート番号 # # Listen Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the VirtualHost # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78 80 Listen 80 モジュール読み込み # # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l ) do not need # to be loaded here. # # Example # LoadModule foo_module modules/mod_foo.so # LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authn_alias_module modules/mod_authn_alias.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so LoadModule version_module modules/mod_version.so # # The following modules are not loaded by default # #LoadModule cern_meta_module modules/mod_cern_meta.so #LoadModule asis_module modules/mod_asis.so 外部設定ファイルの読み込み # # Load config files from the config directory "/etc/httpd/conf.d". # Include conf.d/*.conf 拡張ステータス情報保存の有無 # # ExtendedStatus controls whether Apache will generate "full" status # information (ExtendedStatus On) or just basic information (ExtendedStatus # Off) when the "server-status" handler is called. The default is Off. # #ExtendedStatus On 実行ユーザ・グループ # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don t use Group #-1 on these systems! # User apache Group apache TOPへ編集 Section 2 Main server configuration ### Section 2 Main server configuration # # The directives in this section set up the values used by the main # server, which responds to any requests that aren t handled by a # VirtualHost definition. These values also provide defaults for # any VirtualHost containers you may define later in the file. # # All of these directives may appear inside VirtualHost containers, # in which case these default settings will be overridden for the # virtual host being defined. # サーバ管理者メールアドレス # # ServerAdmin Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin root@localhost サーバ名 # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If this is not set to valid DNS name for your host, server-generated # redirections will not work. See also the UseCanonicalName directive. # # If your host doesn t have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # #ServerName www.example.com 80 ServerName www.sapporobeer.co.jp 80 (サーバが自分自身の名前とポートを決定する方法の設定 # # UseCanonicalName Determines how Apache constructs self-referencing # URLs and the SERVER_NAME and SERVER_PORT variables. # When set "Off", Apache will use the Hostname and Port supplied # by the client. When set "On", Apache will use the value of the # ServerName directive. # UseCanonicalName Off ドキュメントルートの定義 # # DocumentRoot The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/var/www/html" (調査・編集中) # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # Directory / Options FollowSymLinks AllowOverride None /Directory # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something s not working as # you might expect, make sure that you have specifically enabled it # below. # ドキュメントルート配下に適用される設定 # # This should be changed to whatever you set DocumentRoot to. # Directory "/var/www/html" # # Possible values for the Options directive are "None", "All", # or any combination of # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn t give it to you. # # The Options directive is both complicated and important. Please see # http //httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks ディレクトリインデックス作成の許可と、シンボリックリンクを辿ることの許可設定 # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords # Options FileInfo AuthConfig Limit # AllowOverride None 分散設定ファイル(.htaccess)で許可するディレクティヴの種類の設定。 この場合はなし。 # # Controls who can get stuff from this server. # Order allow,deny Allow from all /Directory ユーザディレクトリモジュールの設定 # # UserDir The name of the directory that is appended onto a user s home # directory if a ~user request is received. # # The path to the end user account public_html directory must be # accessible to the webserver userid. This usually means that ~userid # must have permissions of 711, ~userid/public_html must have permissions # of 755, and documents contained therein must be world-readable. # Otherwise, the client will only receive a "403 Forbidden" message. # # See also http //httpd.apache.org/docs/misc/FAQ.html#forbidden # IfModule mod_userdir.c # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir disable ユーザディレクトリ機能は無効 # # To enable requests to /~user/ to serve the user s public_html # directory, remove the "UserDir disable" line above, and uncomment # the following line instead # #UserDir public_html /IfModule ユーザディレクトリ配下に適用される設定 # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # # Directory /home/*/public_html # AllowOverride FileInfo AuthConfig Limit # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec # Limit GET POST OPTIONS # Order allow,deny # Allow from all # /Limit # LimitExcept GET POST OPTIONS # Order deny,allow # Deny from all # /LimitExcept # /Directory ディレクトリインデックスの設定 # # DirectoryIndex sets the file that Apache will serve if a directory # is requested. # # The index.html.var file (a type-map) is used to deliver content- # negotiated documents. The MultiViews Option can be used for the # same purpose, but it is much slower. # DirectoryIndex index.html index.html.var 分散設定ファイルの設定 # # AccessFileName The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess (調査・編集中) # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # Files ~ "^\.ht" Order allow,deny Deny from all /Files MIMEタイプ設定ファイル # # TypesConfig describes where the mime.types file (or equivalent) is # to be found. # TypesConfig /etc/mime.types デフォルトのMIMEタイプの設定 # # DefaultType is the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. # DefaultType text/plain MIME MAGICモジュールの設定 # # The mod_mime_magic module allows the server to use various hints from the # contents of the file itself to determine its type. The MIMEMagicFile # directive tells the module where the hint definitions are located. # IfModule mod_mime_magic.c # MIMEMagicFile /usr/share/magic.mime MIMEMagicFile conf/magic /IfModule DNSルックアップの設定 # # HostnameLookups Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it d be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off メモリマッピングの有無 # # EnableMMAP Control whether memory-mapping is used to deliver # files (assuming that the underlying OS supports it). # The default is on; turn this off if you serve from NFS-mounted # filesystems. On some systems, turning it off (regardless of # filesystem) can improve performance; for details, please see # http //httpd.apache.org/docs/2.2/mod/core.html#enablemmap # #EnableMMAP off sendfileサポートの有無 # # EnableSendfile Control whether the sendfile kernel support is # used to deliver files (assuming that the OS supports it). # The default is on; turn this off if you serve from NFS-mounted # filesystems. Please see # http //httpd.apache.org/docs/2.2/mod/core.html#enablesendfile # #EnableSendfile off エラーログの設定 # # ErrorLog The location of the error log file. # If you do not specify an ErrorLog directive within a VirtualHost # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a VirtualHost # container, that host s errors will be logged there and not here. # ErrorLog logs/error_log ログレベルの設定 # # LogLevel Control the number of messages logged to the error_log. # Possible values include debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn ログフォーマットの設定 # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" % s %b" common LogFormat "%{Referer}i - %U" referer LogFormat "%{User-agent}i" agent (調査・編集中) # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this # requires the mod_logio module to be loaded. #LogFormat "%h %l %u %t \"%r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio カスタムログの設定 # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a VirtualHost # container, they will be logged here. Contrariwise, if you *do* # define per- VirtualHost access logfiles, transactions will be # logged therein and *not* in this file. # #CustomLog logs/access_log common カスタムログファイルの設定 # # If you would like to have separate agent and referer logfiles, uncomment # the following directives. # #CustomLog logs/referer_log referer #CustomLog logs/agent_log agent カスタムログファイルの設定 # # For a single logfile with access, agent, and referer information # (Combined Logfile Format), use the following directive # CustomLog logs/access_log combined サーバ生成ドキュメントのフッタの設定 # # Optionally add a line containing the server version and virtual host # name to server-generated pages (internal error documents, FTP directory # listings, mod_status and mod_info output etc., but not CGI generated # documents or custom error documents). # Set to "EMail" to also include a mailto link to the ServerAdmin. # Set to one of On | Off | EMail # ServerSignature On アイコン画像ディレクトリの設定 # # Aliases Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn t aliased in this # example, only "/icons/". If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it. # # We include the /icons/ alias for FancyIndexed directory listings. If you # do not use FancyIndexing, you may comment this out. # Alias /icons/ "/var/www/icons/" アイコン画像ディレクトリに適用される設定 Directory "/var/www/icons" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory Web DAVモジュールの設定 # # WebDAV module configuration section. # IfModule mod_dav_fs.c # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb /IfModule (調査・編集中) # # ScriptAlias This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" CGIディレクトリの設定 # # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # Directory "/var/www/cgi-bin" AllowOverride None Options None Order allow,deny Allow from all /Directory # # Redirect allows you to tell clients about documents which used to exist in # your server s namespace, but do not anymore. This allows you to tell the # clients where to look for the relocated document. # Example # Redirect permanent /foo http //www.example.com/bar # # Directives controlling the display of server-generated directory listings. # ディレクトリインデックスの設定 # # IndexOptions Controls the appearance of server-generated directory # listings. # IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable (調査・編集中) # # AddIcon* directives tell the server which icon to show for different # files or filename extensions. These are only displayed for # FancyIndexed directories. # AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip アイコン画像の設定(設定ごとの関連付け) AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* アイコン画像の設定(拡張子ごとの関連付け) AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ デフォルトのアイコン画像の設定 # # DefaultIcon is which icon to show for files which do not have an icon # explicitly set. # DefaultIcon /icons/unknown.gif (調査・編集中) # # AddDescription allows you to place a short description after a file in # server-generated indexes. These are only displayed for FancyIndexed # directories. # Format AddDescription "description" filename # #AddDescription "GZIP compressed document" .gz #AddDescription "tar archive" .tar #AddDescription "GZIP compressed tar archive" .tgz (調査・編集中) # # ReadmeName is the name of the README file the server will look for by # default, and append to directory listings. # # HeaderName is the name of a file which should be prepended to # directory indexes. ReadmeName README.html HeaderName HEADER.html インデックス対象外の設定 # # IndexIgnore is a set of filenames which directory indexing should ignore # and not include in the listing. Shell-style wildcarding is permitted. # IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t 言語の設定 # # DefaultLanguage and AddLanguage allows you to specify the language of # a document. You can then use content negotiation to give a browser a # file in a language the user can understand. # # Specify a default language. This means that all data # going out without a specific language tag (see below) will # be marked with this one. You probably do NOT want to set # this unless you are sure it is correct for all cases. # # * It is generally better to not mark a page as # * being a certain language than marking it with the wrong # * language! # # DefaultLanguage nl # # Note 1 The suffix does not have to be the same as the language # keyword --- those with documents in Polish (whose net-standard # language code is pl) may wish to use "AddLanguage pl .po" to # avoid the ambiguity with the common suffix for perl scripts. # # Note 2 The example entries below illustrate that in some cases # the two character Language abbreviation is not identical to # the two character Country code for its country, # E.g. Danmark/dk versus Danish/da . # # Note 3 In the case of ltz we violate the RFC by using a three char # specifier. There is work in progress to fix this and get # the reference data for rfc1766 cleaned up. # # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl) # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de) # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja) # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn) # Norwegian (no) - Polish (pl) - Portugese (pt) # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv) # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW) # AddLanguage ca .ca AddLanguage cs .cz .cs AddLanguage da .dk AddLanguage de .de AddLanguage el .el AddLanguage en .en AddLanguage eo .eo AddLanguage es .es AddLanguage et .et AddLanguage fr .fr AddLanguage he .he AddLanguage hr .hr AddLanguage it .it AddLanguage ja .ja AddLanguage ko .ko AddLanguage ltz .ltz AddLanguage nl .nl AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddLanguage pt .pt AddLanguage pt-BR .pt-br AddLanguage ru .ru AddLanguage sv .sv AddLanguage zh-CN .zh-cn AddLanguage zh-TW .zh-tw 言語優先順位の設定 # # LanguagePriority allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change this. # LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW (調査・編集中) # # ForceLanguagePriority allows you to serve a result page rather than # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback) # [in case no accepted languages matched the available variants] # ForceLanguagePriority Prefer Fallback デフォルトの文字セットの設定 # # Specify a default charset for all content served; this enables # interpretation of all content as UTF-8 by default. To use the # default browser choice (ISO-8859-1), or to allow the META tags # in HTML content to override this choice, comment out this # directive # AddDefaultCharset UTF-8 (調査・編集中) # # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types. # #AddType application/x-tar .tgz (調査・編集中) # # AddEncoding allows you to have certain browsers uncompress # information on the fly. Note Not all browsers support this. # Despite the name similarity, the following Add* directives have nothing # to do with the FancyIndexing customization directives above. # #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz (調査・編集中) # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz (調査・編集中) # # AddHandler allows you to map certain file extensions to "handlers" # actions unrelated to filetype. These can be either built into the server # or added with the Action directive (see below) # # To use CGI scripts outside of ScriptAliased directories # (You will also need to add "ExecCGI" to the "Options" directive.) # #AddHandler cgi-script .cgi (調査・編集中) # # For files that include their own HTTP headers # #AddHandler send-as-is asis (調査・編集中) # # For type maps (negotiated resources) # (This is enabled by default to allow the Apache "It Worked" page # to be distributed in multiple languages.) # AddHandler type-map var (調査・編集中) # # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI) # (You will also need to add "Includes" to the "Options" directive.) # AddType text/html .shtml AddOutputFilter INCLUDES .shtml (調査・編集中) # # Action lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for oft-used CGI file processors. # Format Action media/type /cgi-script/location # Format Action handler-name /cgi-script/location # (調査・編集中) # # Customizable error responses come in three flavors # 1) plain text 2) local redirects 3) external redirects # # Some examples #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http //www.example.com/subscription_info.html # # # Putting this all together, we can internationalize error responses. # # We use Alias to redirect any /error/HTTP_ error .html.var response to # our collection of by-error message multi-language collections. We use # includes to substitute the appropriate text. # # You can modify the messages appearance without changing any of the # default HTTP_ error .html.var files by adding the line # # Alias /error/include/ "/your/include/path/" # # which allows you to create your own set of files by starting with the # /var/www/error/include/ files and # copying them to /your/include/path/, even on a per-VirtualHost basis. # (調査・編集中) Alias /error/ "/var/www/error/" エラードキュメントの設定 IfModule mod_negotiation.c IfModule mod_include.c Directory "/var/www/error" AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback /Directory # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var # ErrorDocument 410 /error/HTTP_GONE.html.var # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var /IfModule /IfModule (調査・編集中) # # The following directives modify normal HTTP response behavior to # handle known problems with browser implementations. # BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 # # The following directive disables redirects on non-GET requests for # a directory that does not include the trailing slash. This fixes a # problem with Microsoft WebFolders which does not appropriately handle # redirects for folders with DAV methods. # Same deal with Apple s DAV filesystem and Gnome VFS support for DAV. # BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully サーバステータス表示設定 # # Allow server status reports generated by mod_status, # with the URL of http //servername/server-status # Change the ".example.com" to match your domain to enable. # # Location /server-status # SetHandler server-status # Order deny,allow # Deny from all # Allow from .example.com # /Location サーバ情報表示設定 # # Allow remote server configuration reports, with the URL of # http //servername/server-info (requires that mod_info.c be loaded). # Change the ".example.com" to match your domain to enable. # # Location /server-info # SetHandler server-info # Order deny,allow # Deny from all # Allow from .example.com # /Location プロキシモジュールの設定 # # Proxy Server directives. Uncomment the following lines to # enable the proxy server # # IfModule mod_proxy.c #ProxyRequests On # # Proxy * # Order deny,allow # Deny from all # Allow from .example.com # /Proxy プロキシ経由アクセス時のViaヘッダの有効・無効の設定 # # Enable/disable the handling of HTTP/1.1 "Via " headers. # ("Full" adds the server version; "Block" removes all outgoing Via headers) # Set to one of Off | On | Full | Block # #ProxyVia On コンテンツキャッシュストレージ管理モジュールの設定 # # To enable a cache of proxied content, uncomment the following lines. # See http //httpd.apache.org/docs/2.2/mod/mod_cache.html for more details. # # IfModule mod_disk_cache.c # CacheEnable disk / # CacheRoot "/var/cache/mod_proxy" # /IfModule # # /IfModule # End of proxy directives. TOPへ編集 Section 3 Virtual Hosts ### Section 3 Virtual Hosts # # VirtualHost If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn t need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # URL http //httpd.apache.org/docs/2.2/vhosts/ # for further details before you try to setup virtual hosts. # # You may use the command line option -S to verify your virtual host # configuration. # # Use name-based virtual hosting. # #NameVirtualHost * 80 # # NOTE NameVirtualHost cannot be used without a port specifier # (e.g. 80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # # VirtualHost example # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # # VirtualHost * 80 # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common # /VirtualHost 最終更新日 [2011-04-15]